package com.meituan.sdk.model.tuangouNg.groupVoucher.couponQueryProfitByCodeMaidan;

import com.meituan.sdk.annotations.ApiMeta;
import java.util.List;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;

/**
* 查询买单订单结算扩展明细
* This file was automatically generated.
*/
@ApiMeta(
    path = "/tuangou/ng/group_voucher/externalProfitDetailRequireMaidan",
    businessId = 1,
    apiVersion = "10013",
    apiName = "coupon_query_profit_by_code_maidan",
    needAuth = true
)
public class CouponQueryProfitByCodeMaidanRequest implements MeituanRequest<List<DataSub>> {
    /**
    * <p data-diff-id="ct-diff-id-0ed728a9-6f36-4c32-b116-30d3fcaa81d8">订单号（一键买单尾款订单号）</p>
    */
    @NotNull(message = "orderId不能为空")
    @SerializedName("orderId")
    private Long orderId;
    /**
    * <p data-diff-id="ct-diff-id-beac05de-6541-4ba1-b338-4d35ff8ec3b4"><span style="color: rgba(0, 0, 0, 0.65)">项目ID</span></p>
    */
    @NotNull(message = "dealId不能为空")
    @SerializedName("dealId")
    private Long dealId;

    public Long getOrderId() {
        return orderId;
    }
    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }
    public Long getDealId() {
        return dealId;
    }
    public void setDealId(Long dealId) {
        this.dealId = dealId;
    }


    @Override
    public MeituanResponse<List<DataSub>> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<List<DataSub>>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "CouponQueryProfitByCodeMaidanRequest{" + "orderId=" + orderId + "," + "dealId=" + dealId + "}";
    }
}
